home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / pluginy Firefox / 59338 / 59338.xpi / chrome / global / toolbarbutton.css < prev    next >
Cascading Style Sheet File  |  2010-02-04  |  6KB  |  180 lines

  1. /* ***** BEGIN LICENSE BLOCK *****
  2.  * Version: MPL 1.1/GPL 2.0/LGPL 2.1
  3.  *
  4.  * The contents of this file are subject to the Mozilla Public License Version
  5.  * 1.1 (the "License"); you may not use this file except in compliance with
  6.  * the License. You may obtain a copy of the License at
  7.  * http://www.mozilla.org/MPL/
  8.  *
  9.  * Software distributed under the License is distributed on an "AS IS" basis,
  10.  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
  11.  * for the specific language governing rights and limitations under the
  12.  * License.
  13.  *
  14.  * The Original Code is Mozilla Communicator client code, released
  15.  * March 31, 1998.
  16.  *
  17.  * The Initial Developer of the Original Code is
  18.  * Netscape Communications Corporation.
  19.  * Portions created by the Initial Developer are Copyright (C) 1998-1999
  20.  * the Initial Developer. All Rights Reserved.
  21.  *
  22.  * Contributor(s):
  23.  *   Joe Hewitt (hewitt@netscape.com)
  24.  *
  25.  * Alternatively, the contents of this file may be used under the terms of
  26.  * either the GNU General Public License Version 2 or later (the "GPL"), or
  27.  * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
  28.  * in which case the provisions of the GPL or the LGPL are applicable instead
  29.  * of those above. If you wish to allow use of your version of this file only
  30.  * under the terms of either the GPL or the LGPL, and not to allow others to
  31.  * use your version of this file under the terms of the MPL, indicate your
  32.  * decision by deleting the provisions above and replace them with the notice
  33.  * and other provisions required by the GPL or the LGPL. If you do not delete
  34.  * the provisions above, a recipient may use your version of this file under
  35.  * the terms of any one of the MPL, the GPL or the LGPL.
  36.  *
  37.  * ***** END LICENSE BLOCK ***** */
  38.  
  39. /* ===== toolbarbutton.css =====================================================
  40.   == Styles used by the XUL button element.
  41.   ======================================================================= */
  42.  
  43. @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
  44.  
  45. /* ::::: toolbarbutton ::::: */
  46.  
  47. toolbarbutton {
  48. -moz-appearance: none;
  49. -moz-box-align: center;
  50. -moz-box-pack: center;
  51. margin: 0;
  52. border: 3px solid transparent;
  53. -moz-border-radius: 4px;
  54. padding: 0px;
  55. background-color: transparent;
  56. color: #000;
  57. }
  58.  
  59. toolbarbutton:hover {
  60. -moz-border-top-colors:#d9dde1 #80a7d3 #d2d9e1;
  61. -moz-border-bottom-colors:#d9dde1 #80a7d3 #d2d9e1;
  62. -moz-border-right-colors:#d9dde1 #80a7d3 #d2d9e1;
  63. -moz-border-left-colors:#d9dde1 #80a7d3 #d2d9e1;
  64. }
  65.  
  66. toolbarbutton:hover:active {
  67. -moz-border-top-colors:#d1dae5 #9fbde0 #78b6fb;
  68. -moz-border-bottom-colors:#d1dae5 #9fbde0 #78b6fb;
  69. -moz-border-right-colors:#d1dae5 #9fbde0 #78b6fb;
  70. -moz-border-left-colors:#d1dae5 #9fbde0 #78b6fb;
  71. }
  72.  
  73. .toolbarbutton-icon[label]:not([label=""]),
  74. .toolbarbutton-icon[type="menu"] {
  75.   -moz-margin-end: 5px;
  76. }
  77.  
  78. .toolbarbutton-text {
  79.   margin: 0 !important;
  80.   text-align: center;
  81. }
  82.  
  83. toolbarbutton.tabbable {
  84.   -moz-user-focus: normal !important;
  85. }
  86.  
  87. toolbarbutton:focus 
  88. {
  89.   /* -moz-appearance looks redundant here but is necessary.
  90.       Without it, the outline won't appear. */
  91.   -moz-appearance: none;
  92.   outline: none;
  93. }
  94.  
  95. toolbarbutton[disabled="true"],
  96. toolbarbutton[disabled="true"]:hover,
  97. toolbarbutton[disabled="true"]:hover:active,
  98. toolbarbutton[disabled="true"][open="true"],
  99. toolbarbutton[disabled="true"][checked="true"] {
  100.   border-color: transparent;
  101.   padding: 3px;
  102.   color: GrayText;
  103. }
  104.  
  105. toolbarbutton[disabled="true"]:-moz-system-metric(windows-classic),
  106. toolbarbutton[disabled="true"]:-moz-system-metric(windows-classic):hover,
  107. toolbarbutton[disabled="true"]:-moz-system-metric(windows-classic):hover:active,
  108. toolbarbutton[disabled="true"][open="true"]:-moz-system-metric(windows-classic),
  109. toolbarbutton[disabled="true"][checked="true"]:-moz-system-metric(windows-classic) {
  110.   color: ThreeDShadow;
  111.   text-shadow: 1px 1px ThreeDHighlight;
  112. }
  113.  
  114. /* ..... checked state ..... */
  115.  
  116. toolbarbutton[checked="true"] {
  117.   padding:0 !important;
  118. margin:0 !important;
  119. border:3px solid;
  120. -moz-border-top-colors:#999897 #c3c2c2 #e0dfde;
  121. -moz-border-bottom-colors:#d8d7d6 #e2e1e0 #e2e1e0;
  122. -moz-border-right-colors:#bdbdbc #dedddc #e2e1e0;
  123. -moz-border-left-colors:#bcbcbb #dedddc #e2e1e0;
  124. background:none !important;
  125. -moz-border-radius: 4px;
  126. }
  127.  
  128. /* ::::: toolbarbutton menu ::::: */
  129.  
  130. .toolbarbutton-menu-dropmarker {
  131.   -moz-appearance: none !important;
  132.   border: none !important;
  133.   background-color: transparent !important;
  134.   padding: 0;
  135.   margin:2px;
  136.   width: auto;
  137. }
  138.  
  139. .toolbarbutton-menu-dropmarker[disabled="true"] {
  140.   padding: 0 !important;
  141. }
  142.  
  143. /* ::::: toolbarbutton menu-button ::::: */
  144.  
  145. toolbarbutton[type="menu-button"] {
  146.   -moz-box-align: stretch;
  147.   -moz-box-orient: horizontal !important;
  148. }
  149.  
  150. toolbarbutton[type="menu-button"],
  151. toolbarbutton[type="menu-button"]:hover,
  152. toolbarbutton[type="menu-button"]:hover:active,
  153. toolbarbutton[type="menu-button"][open="true"],
  154. toolbarbutton[type="menu-button"][disabled="true"],
  155. toolbarbutton[type="menu-button"][disabled="true"]:hover,
  156. toolbarbutton[type="menu-button"][disabled="true"]:hover:active {
  157.   border-style: none;
  158.   padding: 0 !important;
  159. }
  160.  
  161. .toolbarbutton-menubutton-button {
  162.   -moz-box-align: center;
  163.   -moz-box-pack: center;
  164.   -moz-box-orient: vertical;
  165. }
  166.  
  167. /* .......... dropmarker .......... */
  168.  
  169. .toolbarbutton-menubutton-dropmarker {
  170.   -moz-appearance: none !important;
  171.   padding: 3px;
  172.   border: none !important;
  173.   background-color: transparent !important;
  174.   width: auto;
  175. }
  176.  
  177. .toolbarbutton-menubutton-dropmarker[disabled="true"] {
  178.   padding: 3px !important;
  179. }
  180.